package com.hpeu_01.day0111;

/**
 * 写一个名为Account的类模拟账户，该类包括的属性：
 * 账号id、余额balance、年利率annualInterRate；
 * 包含的方法：访问器方法（getter和setter）、
 * 返回月利率方法 getMonthlyInterest（）、取款方法 withdraw（） 、存款方法 deposit（）。
 *
 *
 */
public class Account {
    private int id;
    private double balance;
    private double annualInterRate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getAnnualInterRate() {
        return annualInterRate;
    }

    public void setAnnualInterRate(double annualInterRate) {
        this.annualInterRate = annualInterRate;
    }

    public Account(int id, double balance, double annualInterRate) {
        this.id = id;
        this.balance = balance;
        this.annualInterRate = annualInterRate;
    }

    public Account() {
    }
    public void getMonthlyInterest(){

    }
    //取款的方法
    public void withdraw(double withdrawal){

    }
    //存款的方法
    public void deposit(){

    }
}
